-
-
Notifications
You must be signed in to change notification settings - Fork 261
feat: support merging frontmatter with tp.file.include
#1643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
For details on how this feature works:
|
|
Btw I think there is a fundamental issue with the config system in Templater. When you have nested calls such as a This essentially means that In this case it means if you have a template which is includes another template that creates a file, the frontmatter of the template which creates the file won't be merged into the frontmatter of the root template. |
|
I've fixed the config issue by creating a new instance of the modules in |
|
@Zachatoo have you had a chance to review this? |
|
Sorry I have not! I'll need to do some testing with this, hopefully I'll have time this weekend |
This adds support for merging template frontmatter when using
tp.file.includeeg:
RootSubSub 2The expected output for this template is
This also works with
tp.file.create_new()and files created with Bases